"""
@Author：WangYuXiang
@E-mile：Hill@3io.cc
@CreateTime：2021/4/22 15:41
@DependencyLibrary：无
@MainFunction：无
@FileDoc： 
    urls.py
    文件说明
@ChangeHistory:
    datetime action why
    example:
    2021/4/22 15:41 change 'Fix bug'
        
"""
from apps.school.views import StudentAdminView, ClassAdminView, SchoolAdminView, SchoolSearchView, ClassSearchView
from sanic_rest_framework.routes import ViewSetRouter

route = ViewSetRouter()
route.register(SchoolAdminView, '/school', 'school')
route.register(ClassAdminView, '/class', 'class')
route.register(StudentAdminView, '/student', 'student')
urls = [
           # {'handler': create, 'uri': '/t', 'name': 't'},
           {'handler': SchoolSearchView.as_view({'get': 'list'}), 'uri': '/search_school', 'name': 'search_school'},
           {'handler': ClassSearchView.as_view({'get': 'list'}), 'uri': '/search_class', 'name': 'search_class'},

       ] + route.urls
